import instance from '@/utils/request'
export const register = (values) => instance.post('/h5/user/register', values)
export const login = (values) => instance.post('/h5/user/login', values)

export const getAtricleList = (obj) => instance.get('/h5/interview/query', { params: { current: obj.current, pageSize: 10, sorter: obj.sorter } })

export const getAtricDetial = (id) => instance.get('/h5/interview/show', { params: { id } })

export const opt = (obj) => instance.post('/h5/interview/opt', obj)

export const optList = (obj) => instance.get('/h5/interview/opt/list', { params: { optType: obj.optType, pageSize: 10, page: obj.page } })

export const getUser = () => instance.get('/h5/user/currentUser')
